<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="Bootstrap/css/bootstrap.css">
    <title>百度地图</title>
    <style>
        #allmap{
            height: 100vh;
    }
    </style>
</head>
<body>
    <div class="container ">
        <dir class="border" id="allmap">
        </dir>
    </div>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=CbEp1BSfeMw7rHxyoweInIRWFBQYh4hC"></script>
    <script>
        map = new BMap.Map("allmap");
        var point =  new BMap.Point(116.4035,39.915);
        map.centerAndZoom(point,13);
        map.enableScrollWheelZoom(true);
        var marker = new BMap.Marker(point);
        map.addOverlay(marker);
        map.setCenter(point);
    </script>
</body>
</html>